package pl.tssoft.math.core.calculation.objects;

import java.util.LinkedList;
import java.util.List;
import pl.tssoft.math.core.Value;
import pl.tssoft.math.core.Workspace;
import pl.tssoft.math.core.calculation.Calculable;
import pl.tssoft.math.core.exceptions.CalculationException;

/**
 *
 * @author tserafin
 */
public class CalculableList implements Calculable {

    //todo change
    private List<Calculable> list = new LinkedList<Calculable>();
    private boolean showResult;

    public List<Calculable> getList() {
        return list;
    }

    public Value calulate(Workspace w) throws CalculationException {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public boolean isShowResult() {
        return showResult;
    }

    public void setShowResult(boolean showResult) {
        this.showResult = showResult;
    }

    public boolean isEmpty() {
        return list.isEmpty();
    }
}
